package com.chis.childcheck;

import redis.clients.jedis.ShardedJedis;

/**
 * 
 * @Description
 * @Company zwx
 * @author wlj
 * @version 2019年09月18日
 */
public class RedisRm {
    public static void main(String[] args) {
        String key = args[0];
        ShardedJedis jedis = JedisConnect.getInstance().sparkjedisPool.getResource();
        jedis.select(0);
        String offset = jedis.get(key);
        jedis.select(1);
        jedis.zremrangeByScore(key,0,Double.valueOf(offset)-1);

    }
}
